import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './assets/css/global.css'
import './assets/font/iconfont.css'
import axios from 'axios'
import Vuex from 'vuex'
//全局缓存插件
import store from './store';

Vue.config.productionTip = false
axios.defaults.baseURL = ''
axios.interceptors.request.use(config => {
  config.headers.Authorization = window.sessionStorage.getItem('token')
  return config
})
Vue.prototype.$http = axios

const vm = new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

console.log(vm)
